package ejercicico;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ANNY
 */
public class factorial {
    
    public long Factorial(long n)
        {
            long r;
            if (n == 1)
            {
                r = 1;
            }
            else
                r = n * Factorial(n - 2);
            return r;
        }

    }

    


